class ObjectUtils {
	static create(Cls, obj) {
		let tmp = new Cls()
		Object.keys(obj).forEach(key => {
			tmp[key] = obj[key]
		})
		return tmp
	}

	/**
	 * NUN is null, undefined, NaN
	 * @param obj
	 */
	static isNUN(obj) {
		return obj === null || obj === undefined || obj === (1 / 0)
	}
}

export default ObjectUtils